/*
 * @lc app=leetcode.cn id=1037 lang=javascript
 *
 * [1037] 有效的回旋镖
 */

// @lc code=start
/**
 * @param {number[][]} points
 * @return {boolean}
 */
var isBoomerang = function(points) {

    let x1 = points[0][0] - points[1][0];
    let y1 = points[0][1] - points[1][1];
    
    let x2 = points[0][0] - points[2][0];
    let y2 = points[0][1] - points[2][1];
    
    return x1 * y2 != x2 * y1;
};
// @lc code=end

